<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<link  rel="stylesheet"  type="text/css"  href="css/css.css"> 
<link  rel="stylesheet"  type="text/css"  href="css/buttons.css">
</head>
<body>
<p>用户个人信息测试</p>
<% Object username=session.getAttribute("username"); %>  <!-- 从JSP页面拿到传的值 -->
<% session.setAttribute("username", username);%><!--  传值到servlet用来显示登陆用户的信息 -->
<% Object school= session.getAttribute("school"); %>
<% Object name= session.getAttribute("name");%>
<% Object qq= session.getAttribute("qq"); %>
<% Object wechat= session.getAttribute("wechat");%> 
<% Object youbian= session.getAttribute("youbian"); %>
<% Object mobilephone= session.getAttribute("mobilephone"); %>
<% Object email=session.getAttribute("email");%>
<% Object unit=session.getAttribute("unit");%>
<% Object unitel=session.getAttribute("unittel");%>
<% Object hometel=session.getAttribute("hometel");%>
<% Object position=session.getAttribute("position");%>
<% Object address=session.getAttribute("address");%>


 <!-- <a href="personInfor.jsp?username" >完善你的信息</a> -->

 <%--  <table border="1">
     <tr>
        <th>姓名:</th>
        <th><%=name %></th>
     </tr>
     
     <tr>
        <th>学校：</th>
        <th><%=school %></th>
     </tr>
     <tr>
     <th>QQ号：</th>
     <th><%=tencent %></th>
     </tr>
     
     <tr>
        <th>微信号：</th>
        <th><%= wechat %></th>
     </tr>
     <tr>
        <th>邮编：</th>
        <th><%= youbian %></th>
     </tr>
     <tr>
        <th>手机号：</th>
        <th><%=phonenumber %></th>
     </tr>
  </table> --%>

   <form  action="/contract89/changePerInformation" method="post"  class="form">
     <div><b class="b">姓名:</b> <input class="inputLocation" type="text" name="myname" value="<%=request.getAttribute("name") %>"> </div><br><br>
     <div><b class="b">学校：</b><input class="inputLocation" type="text" name="school" value="<%=request.getAttribute("school") %>"> </div><br><br>
    <div><b  class="b">专业：</b> <input  class="inputLocation" type="text" name="sdept" value="<%=request.getAttribute("sdept") %>"> </div><br><br>
    <div><b class="b">QQ号：</b><input class="inputLocation" type="text" name="qq" value="<%=request.getAttribute("qq") %>"> </div><br><br>
    <div><b class="b">电子邮箱：</b><input class="inputLocation" type="text" name="email" value="<%=request.getAttribute("email") %>"> </div><br><br>
    <div><b class="b">微信：</b> <input class="inputLocation" type="text" name="wechat" value="<%=request.getAttribute("wechat") %>"> </div><br><br>
    <div><b class="b">手机号：</b> <input class="inputLocation" type="text" name="phoneNumber" value="<%=request.getAttribute("mobilephone") %>"> </div><br><br>         
    <div><b class="b">邮编：</b> <input class="inputLocation" type="text" name="youbian" value="<%=request.getAttribute("youbian") %>"> </div><br><br>
    <div><b class="b">单位：</b> <input class="inputLocation" type="text" name="unit" value="<%=request.getAttribute("unit") %>"> </div><br><br>
    <div><b class="b">单位电话：</b> <input class="inputLocation" type="text" name="unittel" value="<%=request.getAttribute("unittel") %>"> </div><br><br>
    <div><b class="b">家庭电话：</b> <input class="inputLocation" type="text" name="hometel" value="<%=request.getAttribute("hometel") %>"> </div><br><br>
    <div><b class="b">职位：</b> <input class="inputLocation" type="text" name="position" value="<%=request.getAttribute("position") %>"> </div><br><br>
    <div><b class="b">地址：</b> <input class="inputLocation" type="text" name="address" value="<%=request.getAttribute("address") %>"> </div><br><br>
    <div> <input   type="hidden" name="username" value="<%=username %>" ></div><br><br>
    <input class="formSub button button-glow button-rounded button-raised button-primary" type="submit"  value="保存更改信息"> 
   </form>
     <br>
     <br>
				<%-- <form action="/contract89/getPersonInf">
 				 <input type="submit"  value="查看我的信息">
					 <b><%=username %> </b>
			   </form> --%>




</body>
</html>